package com.umeox.moto.watch.themes.skin.entity;

import android.view.View;
import android.widget.ImageView;

import com.umeox.moto.watch.themes.skin.loader.ResourceManager;


public class ImageViewSrcAttr extends SkinAttr {

    @Override
    public void apply(View view) {
        if (view instanceof ImageView) {
            ImageView imageView = (ImageView) view;
            if (RES_TYPE_NAME_DRAWABLE.equals(attrValueTypeName)) {
                imageView.setImageDrawable(ResourceManager.getInstance().getDrawable(attrValueRefId));
            }
        }
    }
}
